package com.hs.server.exception;

/**
 * 自定义全局异常
 */
public class GlobalException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    private CodeMsg cm;

    public GlobalException(String msg) {
        this.cm = new CodeMsg();
        cm.setMsg(msg);
    }
    public CodeMsg getCm() {
        return cm;
    }
}
